package com.xxgc.cloud.common.shiro.config;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: SpringCloudStudy
 * @description:
 * @author: Shijiayi
 * @create: 2022-12-13 13:24
 **/
public class JwtToken  implements AuthenticationToken {

    private String token;

    //构造方法
    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
